package com.github.staticProxy2;

/**
 * @author fatfish
 * @version 1.0
 * @date 2025/8/14 16:51
 */
public class Client {
    public static void main(String[] args) {
        // 真实业务对象
        UserServiceImpl userService = new UserServiceImpl();
        // 代理类
        UserServiceProxy proxy = new UserServiceProxy();
        // 设置要代理的真实对象
        proxy.setUserService(userService);

        proxy.add();
        proxy.query();
    }
}
